Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return a ValueAbsent for all the downstream-tls related functions instead of a NotAvailable #315

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

JakeChampion
Copy link
Contributor

@JakeChampion JakeChampion commented Sep 27, 2023

Note

This is blocked, waiting on a new release of the fastly crate

Currently these functions return a NotAvailable error, I believe this is because we don't support https within Viceroy.

We do support http though, and http is also supported on Fastly, this patch adds an implementation for the downstream-tls functions which is valid for http (non-tls) connections. As Viceroy does not yet support https, we could say this is a full implementation as-of-today.

In the future if/when Viceroy supports https, we would need to come back to these functions and make them return the correct, expected values based on the incoming connection (tls or not), which is why I have left "FIXME" comments on all of these.

Currently these functions return a NotAvailable error, I believe this is because we don't support https within Viceroy.

We do support http though, and http is also supported on Fastly, this patch adds an implementation for the downstream-tls functions which is valid for http (non-tls) connections. As Viceroy does not yet support https, we could say this is a full implementation as-of-today. In the future if/when Viceroy supports https, we would need to come back to these functions and make them return the correct, expected values based on the incoming connection (tls or not).
@JakeChampion JakeChampion marked this pull request as ready for review March 20, 2024 09:09
…s requests is commented out as it currently panics - we are waiting on a patch to land in the fastly crate to make it not panic in this situation
Copy link

@awortman-fastly awortman-fastly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh great, thank you for including asserts in downstream-req.rs 🙏

@JakeChampion JakeChampion merged commit 4067d0f into main Apr 4, 2024
7 checks passed
@JakeChampion JakeChampion deleted the jake/tls branch April 4, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants